<head>
	<meta http-equiv="Content-Type" content="text/html; charset={$defaultCharset|escape}" />
	<link rel="stylesheet" href="{$baseUrl}/lib/pkp/styles/pkp.css" type="text/css" />
	

	<link rel="stylesheet" href="{$baseUrl}/lib/pkp/styles/common.css" type="text/css" />
	
	<link rel="stylesheet" href="{$baseUrl}/styles/common.css" type="text/css" />

	<link rel="stylesheet" href="{$baseUrl}/styles/tabs.css" type="text/css" />

	<!-- Base Jquery -->
	{*
	{if $allowCDN}<script type="text/javascript" src="http://www.google.com/jsapi"></script>
	<script type="text/javascript">{literal}
		// Provide a local fallback if the CDN cannot be reached
		if (typeof google == 'undefined') {
			document.write(unescape("%3Cscript src='{/literal}{$baseUrl}{literal}/lib/pkp/js/lib/jquery/jquery.min.js' type='text/javascript'%3E%3C/script%3E"));
			document.write(unescape("%3Cscript src='{/literal}{$baseUrl}{literal}/lib/pkp/js/lib/jquery/plugins/jqueryUi.min.js' type='text/javascript'%3E%3C/script%3E"));
		} else {
			google.load("jquery", "{/literal}{$smarty.const.CDN_JQUERY_VERSION}{literal}");
			google.load("jqueryui", "{/literal}{$smarty.const.CDN_JQUERY_UI_VERSION}{literal}");
		}
	{/literal}</script>
	{else}
	*}
	<script type="text/javascript" src="{$baseUrl}/lib/pkp/js/lib/jquery/jquery.min.js"></script>
	<script type="text/javascript" src="{$baseUrl}/lib/pkp/js/lib/jquery/plugins/jqueryUi.min.js"></script>
	{*{/if}
	*}

	<script type="text/javascript" src="{$baseUrl}/classes/acct/js/ShowHintMATK.js?V1"></script>
	<script type="text/javascript" src="{$baseUrl}/classes/acct/js/danhmucRF.js"></script>

</head>

{*
<body onload='javascript:document.getElementById("soct").focus();'>
*}

{strip}
{assign var="pageTitle" value="Chung tu"}
{if ($loaitien) != 'VND' }
	{assign var="socot" value="6"}
{else}
	{assign var="socot" value="5"}
{/if}
{include file="acct/acctNavbar.tpl"}
{include file="acct/breadcrumbs.tpl"}

{/strip}

{if ($Mode) == 'edit' }
	<body style="font-size:12px" onload="LoadForm_edit('{$sodong}', '{$matk}', '{$mant}', '{$tkduss}', '{$macttkduss}', '{$sotienvnss}', '{$sotienntss}','{$diengiaiss}', '{$urlS_getTenDMTK}', '{$urlS_getTenDMDV}')">
	{assign var="ngct" value=$ngct|date_format:"%d/%m/%Y"}
	{assign var="ngaylapct" value=$ngaylapct|date_format:"%d/%m/%Y"}

{else}
	<body style="font-size:12px"  onload="LoadForm_add({$sodong})">
	{assign var="ngct" value=$smarty.now|date_format:"%d/%m/%Y"}
	{assign var="ngaylapct" value=$smarty.now|date_format:"%d/%m/%Y"}
{/if}


<div id = "ModeList" style="display:none">{$ModeList}</div>
<div id = "ttChiTiet" style="display:none" >{$ChiTiet}</div>
<div id = "ttNam" style="display:none">{$xNam}</div>
<div id = "ttLoaiTien" style="display:none">{$loaitien}</div>


{strip}
{include file="acctCN/RSBar.tpl"}
{/strip}

<div style="width: 100%">
<table id="head" width="100%">
<tr>
<th></th>
<th></th>
</tr>
<tr valign="bottom">
<td bgcolor='#ffffff' background='img/strichel.gif' colspan=2></td>
</tr>

<tr rowspan= "2" style="valign:top; margin-top:0">
	
	<td width="60%"><div class="DMtitle" style = "valign: center; text-align: left; text-transform: uppercase "><strong>{$loaiphieu} &nbsp N. {$xNam}</strong></div></td>

	<td width="35%" valign="top" text-align= "right" rowspan = "2"><b><div id="action" style="display: inline" >{$action}</div></b> 
	{*-------------------NewV*}
	{if ($Mode) == 'edit' }
		<div id="ctlinks" style="display: inline"> 
		{$ctlinks}
		</div>
	{else}
		<div id="ctlinks" style="display: inline"> 
		{$ctlinks}
		</div>
	{/if}

	<hr size="2" noshade style="color:#000000" align="left" />
	{$mact}
	<input type="button" id="save" value="{translate key="common.save"}"  class="button" onClick="InsCTTMTG('close', '{$url}', '{$journalid}', '{$xNam}', '{$loaitien}',  '{$loaitk}', '{$mact}', '{$noco}', '{$urlIns}', '{$urlMain}', '{$idphieu}');"> 
	<input type="button" id="edit" value="Thôi"  class="button" >  	{*--onClick="Edit_1CT();"*}
	<input id="print" type="button" class="button" value="In" onclick="PrintCT_CE('{$idphieu}', '{$xNam}', '{$noco}','{$urlIn}');" class="button" disabled />
	<input id="xoa" type="button" class="button" value="Xóa"  class="button" disabled />
	<input id="tim" type="button" class="button" value="Tìm"  class="button" />
	<input type="button" id="xem" value="Xem DS"  class="button"  onclick="document.location.href='{url page= "acctCN" op='CTTMTG' mant=$loaitien noco=$noco ChiTiet=$ChiTiet Nam=$xNam ngay1=$ngay1 ngay2=$ngay2 escape=false}'"> 
	<input id="cancel" type="button" class="button" value="Quay ra" class="button" />
	</td>

	
</tr>
<tr valign="bottom">
<td bgcolor='#ffffff' background='img/strichel.gif' colspan=2></td>
</tr>
</table>
</div>


<div id= "tim" style="display: none">
	{include file="acctCN/CTTMTGFormTim.tpl"}

</div>

<div id= "list" style="display: none">
	{include file="acctCN/CTTMTGFormTimKQ.tpl"}

</div>




<div id = "Main" style="width: 100%; border: thin solid #DDDDD0; border-left: none; background-color: 'ivory 3'  ">
{include file="acctCN/CTTMTGFormMain.tpl"}
</div>
<div class="tabs">
    <ul class="tab-links">
	<table style= "width:95%; align: center">
	<td style= "width:50%; border-radius:3px 3px 0px 0px; background:DarkGray ;
		text-align: center">
        <li class="active" width="300px"><a id="tab1" href="#tab1">Chi tiết hạch toán</a></li>
	</td>
	<td style= "width:50%; border-radius:3px 3px 0px 0px; background:DarkGray ;
		text-align: center">
        <li><a id="tab2" href="#tab2">Khai thuế</a></li>
	</td>
	</table>
    </ul>

 
    <div class="tab-content">
        <div id="tab1" class="tab active">
		{include file="acctCN/CTTMTGFormCT.tpl"}
        </div>
 
        <div id="tab2" class="tab" style="display: none">
		{include file="acctCN/CTTMTGFormThue.tpl"}
        </div>


    </div>
</div>

<table id="myTotal" width = "95%"  style = "margin: 0 auto">
<tr height = "40" valign="center" >
<td width = "70%" style = "font-weight: bold; text-align:left; vertical-align: left;"><label id = "total" style="color:Maroon;"></label>
</td>

<td width = "20%" align = "right">
            <a class="action" href="javascript:void(0);" onclick="addnewrow_add();">+Th&#234;m d&#242;ng</a>
 </td>
</td>
</tr>


</table>

</body>




